package dreamCookGame;

public class Dialogue {

	String _description;
	AudioClipBig[] _audioClips;
	AudioClipBig _currentAudioClip;
	int _audioClipIndex;
	
	public Dialogue(String description, AudioClipBig[] audioClip) {
		_description = description;
		_audioClips = audioClip;
	}
	
	public void loadResources(References reference) {
		for(int i = 0; i < _audioClips.length; i++) {
			_audioClips[i].loadResouces(reference);
		}
			
		_currentAudioClip = _audioClips[0];
	}
	
	public void setToNextAudioClip() {
		if(_audioClipIndex + 1 == _audioClips.length)
			_audioClipIndex = 0;
		else
			_audioClipIndex++;
		
		_currentAudioClip = _audioClips[_audioClipIndex];		
	}
}
